package pers.hl.module_main.bookshelf

import pers.hl.lib_global.http.LibResponse
import pers.hl.lib_global.model.bean.Book
import pers.hl.lib_global.model.bean.BookBorRec
import pers.hl.lib_global.mvvm.BaseLibModel

class BookShelfModel: BaseLibModel() {

    suspend fun loadMyBooks(userId: Int): LibResponse<List<Book>> {
        return libService.getUserBooks(userId)
    }

    suspend fun fetchMyBorrowed(userId: Int): LibResponse<List<BookBorRec>> {
        return libService.fetchMyBorrowed()
    }

}
